package com.whminwei.edu.api.school.dto.fspn;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author zhangzf
 * @since 2024/7/18
 **/
@Data
@NoArgsConstructor
public class TchBuildingListFspn {
    @JsonValue
    private List<BuildingBo> buildingBoList;

    @JsonCreator
    public TchBuildingListFspn(List<BuildingBo> buildingBoList) {
        this.buildingBoList = buildingBoList;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class BuildingBo {
        /**
         * 教学楼id
         */
        private String tchBuildingId;
        /**
         * 教学楼名称
         */
        private String tchBuildingName;
        /**
         * 教学楼简称/楼栋号
         */
        private String tchBuildingAlias;
        /**
         * 校区
         */
        private String campusId;

    }
}
